package cn.lf.dto.sys.order;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
@ApiModel("订单信息获取返回类")
public class OrderInfoGetRepDTO {

    @ApiModelProperty("订单id")
    private String orderId;

    @ApiModelProperty("订单编号")
    private String orderNumber;

    @ApiModelProperty("总金额")
    private String totalPay;

    @ApiModelProperty("实付金额")
    private String actualPay;

    @ApiModelProperty("退款金额")
    private String refundPay;

    @ApiModelProperty("支付类型")
    private String paymentType;

    @ApiModelProperty("店铺名称")
    private String shopName;

    @ApiModelProperty("订单状态")
    private String orderStatus;

    @ApiModelProperty("订单状态中文")
    private String orderStatusStr;

    @ApiModelProperty("订单创建时间")
    private String createTime;

    @ApiModelProperty("用户姓名")
    private String userFullName;

    @ApiModelProperty("买家留言")
    private String buyerMessage;

    @ApiModelProperty("买家昵称")
    private String buyerNick;

    @ApiModelProperty("买家是否已经评价")
    private String buyerRate;

    @ApiModelProperty("发票类型")
    private String invoiceType;

    @ApiModelProperty("订单来源")
    private String sourceType;

    @ApiModelProperty("订单下的产品信息列表")
    private List<OrderProductInfo> productList;

    @Data
    @ApiModel("订单下的产品信息")
    public static class OrderProductInfo{

        @ApiModelProperty("产品id")
        private String pid;

        @ApiModelProperty("产品名称")
        private String productName;

        @ApiModelProperty("产品图片")
        private String pic;

        @ApiModelProperty("产品数量")
        private Integer productNumber;

        @ApiModelProperty("产品价格")
        private BigDecimal productPrice;

    }
}
